<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>变量类型</title>
		<script>
			var w;
			console.log(w,typeof(w));
			w=12.5;
			console.log(w,typeof(w));
			w=2>1;
			console.log(w,typeof(w));
			w="nihao";
			console.log(w,typeof(w));
			w=null;
			console.log(w,typeof(w));
			w=new Date();
			console.log(w,typeof(w));
		</script>
	</head>
	<body>
	</body>
</html>